<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# OPTIONS -fno-warn-orphans #-}</span><span>
</span><span id="line-2"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Data.Time.Format.Parse</span><span>
</span><span id="line-3"></span><span>    </span><span class="hs-special">(</span><span>
</span><span id="line-4"></span><span>    </span><span class="annot"><span class="hs-comment">-- * UNIX-style parsing</span></span><span>
</span><span id="line-5"></span><span>    </span><span class="annot"><a href="Data.Time.Format.Parse.html#parseTimeM"><span class="hs-identifier">parseTimeM</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.html#parseTimeOrError"><span class="hs-identifier">parseTimeOrError</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.html#readSTime"><span class="hs-identifier">readSTime</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.html#readPTime"><span class="hs-identifier">readPTime</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-6"></span><span>    </span><span class="annot"><a href="Data.Time.Format.Parse.html#parseTime"><span class="hs-identifier">parseTime</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.html#readTime"><span class="hs-identifier">readTime</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.html#readsTime"><span class="hs-identifier">readsTime</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-7"></span><span>    </span><span class="annot"><a href="Data.Time.Format.Parse.Class.html#ParseTime"><span class="hs-identifier">ParseTime</span></a></span><span class="hs-special">(</span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-8"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Locale</span></span><span>
</span><span id="line-9"></span><span>    </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="Data.Time.Format.Locale.html"><span class="hs-identifier">Data.Time.Format.Locale</span></a></span><span>
</span><span id="line-10"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-11"></span><span>
</span><span id="line-12"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Proxy.html#"><span class="hs-identifier">Data.Proxy</span></a></span><span class="hs-cpp">
#if MIN_VERSION_base(4,9,0)
</span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Control.Monad.Fail.html#"><span class="hs-identifier">Control.Monad.Fail</span></a></span><span>
</span><span id="line-15"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Prelude.html#"><span class="hs-identifier">Prelude</span></a></span><span> </span><span class="hs-keyword">hiding</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Control.Monad.Fail.html#fail"><span class="hs-identifier">fail</span></a></span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Char.html#"><span class="hs-identifier">Data.Char</span></a></span><span>
</span><span id="line-18"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.Format.Locale.html"><span class="hs-identifier">Data.Time.Format.Locale</span></a></span><span>
</span><span id="line-19"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#"><span class="hs-identifier">Text.ParserCombinators.ReadP</span></a></span><span> </span><span class="hs-keyword">hiding</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#char"><span class="hs-identifier">char</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#string"><span class="hs-identifier">string</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-20"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.UniversalTime.html"><span class="hs-identifier">Data.Time.Clock.Internal.UniversalTime</span></a></span><span>
</span><span id="line-21"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.UTCTime.html"><span class="hs-identifier">Data.Time.Clock.Internal.UTCTime</span></a></span><span>
</span><span id="line-22"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.Calendar.Days.html"><span class="hs-identifier">Data.Time.Calendar.Days</span></a></span><span>
</span><span id="line-23"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeZone.html"><span class="hs-identifier">Data.Time.LocalTime.Internal.TimeZone</span></a></span><span>
</span><span id="line-24"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html"><span class="hs-identifier">Data.Time.LocalTime.Internal.TimeOfDay</span></a></span><span>
</span><span id="line-25"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.LocalTime.html"><span class="hs-identifier">Data.Time.LocalTime.Internal.LocalTime</span></a></span><span>
</span><span id="line-26"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.ZonedTime.html"><span class="hs-identifier">Data.Time.LocalTime.Internal.ZonedTime</span></a></span><span>
</span><span id="line-27"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.Class.html"><span class="hs-identifier">Data.Time.Format.Parse.Class</span></a></span><span>
</span><span id="line-28"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.Instances.html"><span class="hs-identifier">Data.Time.Format.Parse.Instances</span></a></span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-29"></span><span>
</span><span id="line-30"></span><span class="hs-comment">-- | Parses a time value given a format string.</span><span>
</span><span id="line-31"></span><span class="hs-comment">-- Supports the same %-codes as 'formatTime', including @%-@, @%_@ and @%0@ modifiers, however padding widths are not supported.</span><span>
</span><span id="line-32"></span><span class="hs-comment">-- Case is not significant in the input string.</span><span>
</span><span id="line-33"></span><span class="hs-comment">-- Some variations in the input are accepted:</span><span>
</span><span id="line-34"></span><span class="hs-comment">--</span><span>
</span><span id="line-35"></span><span class="hs-comment">-- [@%z@] accepts any of @&#177;HHMM@ or @&#177;HH:MM@.</span><span>
</span><span id="line-36"></span><span class="hs-comment">--</span><span>
</span><span id="line-37"></span><span class="hs-comment">-- [@%Z@] accepts any string of letters, or any of the formats accepted by @%z@.</span><span>
</span><span id="line-38"></span><span class="hs-comment">--</span><span>
</span><span id="line-39"></span><span class="hs-comment">-- [@%0Y@] accepts exactly four digits.</span><span>
</span><span id="line-40"></span><span class="hs-comment">--</span><span>
</span><span id="line-41"></span><span class="hs-comment">-- [@%0G@] accepts exactly four digits.</span><span>
</span><span id="line-42"></span><span class="hs-comment">--</span><span>
</span><span id="line-43"></span><span class="hs-comment">-- [@%0C@] accepts exactly two digits.</span><span>
</span><span id="line-44"></span><span class="hs-comment">--</span><span>
</span><span id="line-45"></span><span class="hs-comment">-- [@%0f@] accepts exactly two digits.</span><span>
</span><span id="line-46"></span><span class="hs-comment">--</span><span>
</span><span id="line-47"></span><span class="hs-comment">-- For example, to parse a date in YYYY-MM-DD format, while allowing the month</span><span>
</span><span id="line-48"></span><span class="hs-comment">-- and date to have optional leading zeros (notice the @-@ modifier used for @%m@</span><span>
</span><span id="line-49"></span><span class="hs-comment">-- and @%d@):</span><span>
</span><span id="line-50"></span><span class="hs-comment">--</span><span>
</span><span id="line-51"></span><span class="hs-comment">-- &gt; Prelude Data.Time&gt; parseTimeM True defaultTimeLocale &quot;%Y-%-m-%-d&quot; &quot;2010-3-04&quot; :: Maybe Day</span><span>
</span><span id="line-52"></span><span class="hs-comment">-- &gt; Just 2010-03-04</span><span>
</span><span id="line-53"></span><span class="hs-comment">--</span><span>
</span><span id="line-54"></span><span id="local-6989586621679074142"><span id="local-6989586621679074143"><span class="annot"><a href="Data.Time.Format.Parse.html#parseTimeM"><span class="hs-identifier hs-type">parseTimeM</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="hs-cpp">
#if MIN_VERSION_base(4,9,0)
</span><span>    </span><span class="annot"><a href="../../base/src/Control.Monad.Fail.html#MonadFail"><span class="hs-identifier hs-type">MonadFail</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074143"><span class="hs-identifier hs-type">m</span></a></span><span class="hs-cpp">
#else
</span><span>    </span><span class="hs-identifier">Monad</span><span> </span><span class="hs-identifier">m</span><span class="hs-cpp">
#endif
</span><span>    </span><span class="hs-special">,</span><span class="annot"><a href="Data.Time.Format.Parse.Class.html#ParseTime"><span class="hs-identifier hs-type">ParseTime</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074142"><span class="hs-identifier hs-type">t</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span>
</span><span id="line-61"></span><span>             </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>       </span><span class="hs-comment">-- ^ Accept leading and trailing whitespace?</span><span>
</span><span id="line-62"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.Format.Locale.html#TimeLocale"><span class="hs-identifier hs-type">TimeLocale</span></a></span><span> </span><span class="hs-comment">-- ^ Time locale.</span><span>
</span><span id="line-63"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Format string.</span><span>
</span><span id="line-64"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Input string.</span><span>
</span><span id="line-65"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679074143"><span class="hs-identifier hs-type">m</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074142"><span class="hs-identifier hs-type">t</span></a></span></span></span><span>    </span><span class="hs-comment">-- ^ Return the time value, or fail if the input could</span><span>
</span><span id="line-66"></span><span>                        </span><span class="hs-comment">-- not be parsed using the given format.</span><span>
</span><span id="line-67"></span><span id="parseTimeM"><span class="annot"><span class="annottext">parseTimeM :: forall (m :: * -&gt; *) t.
(MonadFail m, ParseTime t) =&gt;
Bool -&gt; TimeLocale -&gt; String -&gt; String -&gt; m t
</span><a href="Data.Time.Format.Parse.html#parseTimeM"><span class="hs-identifier hs-var hs-var">parseTimeM</span></a></span></span><span> </span><span id="local-6989586621679074035"><span class="annot"><span class="annottext">Bool
</span><a href="#local-6989586621679074035"><span class="hs-identifier hs-var">acceptWS</span></a></span></span><span> </span><span id="local-6989586621679074034"><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679074034"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span id="local-6989586621679074033"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074033"><span class="hs-identifier hs-var">fmt</span></a></span></span><span> </span><span id="local-6989586621679074032"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074032"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; TimeLocale -&gt; String -&gt; String -&gt; [t]
forall t.
ParseTime t =&gt;
Bool -&gt; TimeLocale -&gt; String -&gt; String -&gt; [t]
</span><a href="Data.Time.Format.Parse.html#parseTimeList"><span class="hs-identifier hs-var">parseTimeList</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="#local-6989586621679074035"><span class="hs-identifier hs-var">acceptWS</span></a></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679074034"><span class="hs-identifier hs-var">l</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074033"><span class="hs-identifier hs-var">fmt</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074032"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-68"></span><span>    </span><span class="hs-special">[</span><span id="local-6989586621679074030"><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621679074030"><span class="hs-identifier hs-var">t</span></a></span></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">t -&gt; m t
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621679074030"><span class="hs-identifier hs-var">t</span></a></span><span>
</span><span id="line-69"></span><span>    </span><span class="hs-special">[</span><span class="hs-special">]</span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String -&gt; m t
forall (m :: * -&gt; *) a. MonadFail m =&gt; String -&gt; m a
</span><a href="../../base/src/Control.Monad.Fail.html#fail"><span class="hs-identifier hs-var">fail</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; m t) -&gt; String -&gt; m t
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;parseTimeM: no parse of &quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; String
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074032"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-70"></span><span>    </span><span class="annot"><span class="annottext">[t]
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String -&gt; m t
forall (m :: * -&gt; *) a. MonadFail m =&gt; String -&gt; m a
</span><a href="../../base/src/Control.Monad.Fail.html#fail"><span class="hs-identifier hs-var">fail</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; m t) -&gt; String -&gt; m t
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;parseTimeM: multiple parses of &quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; String
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074032"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-71"></span><span>
</span><span id="line-72"></span><span class="hs-comment">-- | Parse a time value given a format string. Fails if the input could</span><span>
</span><span id="line-73"></span><span class="hs-comment">-- not be parsed using the given format. See 'parseTimeM' for details.</span><span>
</span><span id="line-74"></span><span id="local-6989586621679074126"><span class="annot"><a href="Data.Time.Format.Parse.html#parseTimeOrError"><span class="hs-identifier hs-type">parseTimeOrError</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.Class.html#ParseTime"><span class="hs-identifier hs-type">ParseTime</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074126"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span>
</span><span id="line-75"></span><span>             </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>       </span><span class="hs-comment">-- ^ Accept leading and trailing whitespace?</span><span>
</span><span id="line-76"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.Format.Locale.html#TimeLocale"><span class="hs-identifier hs-type">TimeLocale</span></a></span><span> </span><span class="hs-comment">-- ^ Time locale.</span><span>
</span><span id="line-77"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Format string.</span><span>
</span><span id="line-78"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Input string.</span><span>
</span><span id="line-79"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679074126"><span class="hs-identifier hs-type">t</span></a></span></span><span>          </span><span class="hs-comment">-- ^ The time value.</span><span>
</span><span id="line-80"></span><span id="parseTimeOrError"><span class="annot"><span class="annottext">parseTimeOrError :: forall t.
ParseTime t =&gt;
Bool -&gt; TimeLocale -&gt; String -&gt; String -&gt; t
</span><a href="Data.Time.Format.Parse.html#parseTimeOrError"><span class="hs-identifier hs-var hs-var">parseTimeOrError</span></a></span></span><span> </span><span id="local-6989586621679074019"><span class="annot"><span class="annottext">Bool
</span><a href="#local-6989586621679074019"><span class="hs-identifier hs-var">acceptWS</span></a></span></span><span> </span><span id="local-6989586621679074018"><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679074018"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span id="local-6989586621679074017"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074017"><span class="hs-identifier hs-var">fmt</span></a></span></span><span> </span><span id="local-6989586621679074016"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074016"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; TimeLocale -&gt; String -&gt; String -&gt; [t]
forall t.
ParseTime t =&gt;
Bool -&gt; TimeLocale -&gt; String -&gt; String -&gt; [t]
</span><a href="Data.Time.Format.Parse.html#parseTimeList"><span class="hs-identifier hs-var">parseTimeList</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="#local-6989586621679074019"><span class="hs-identifier hs-var">acceptWS</span></a></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679074018"><span class="hs-identifier hs-var">l</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074017"><span class="hs-identifier hs-var">fmt</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074016"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-81"></span><span>    </span><span class="hs-special">[</span><span id="local-6989586621679074015"><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621679074015"><span class="hs-identifier hs-var">t</span></a></span></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621679074015"><span class="hs-identifier hs-var">t</span></a></span><span>
</span><span id="line-82"></span><span>    </span><span class="hs-special">[</span><span class="hs-special">]</span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String -&gt; t
forall a. HasCallStack =&gt; String -&gt; a
</span><a href="../../base/src/GHC.Err.html#error"><span class="hs-identifier hs-var">error</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; t) -&gt; String -&gt; t
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;parseTimeOrError: no parse of &quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; String
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074016"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-83"></span><span>    </span><span class="annot"><span class="annottext">[t]
</span><span class="hs-identifier">_</span></span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String -&gt; t
forall a. HasCallStack =&gt; String -&gt; a
</span><a href="../../base/src/GHC.Err.html#error"><span class="hs-identifier hs-var">error</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; t) -&gt; String -&gt; t
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;parseTimeOrError: multiple parses of &quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; String
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074016"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-84"></span><span>
</span><span id="line-85"></span><span id="local-6989586621679074135"><span class="annot"><a href="Data.Time.Format.Parse.html#parseTimeList"><span class="hs-identifier hs-type">parseTimeList</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.Class.html#ParseTime"><span class="hs-identifier hs-type">ParseTime</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074135"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span>
</span><span id="line-86"></span><span>             </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>       </span><span class="hs-comment">-- ^ Accept leading and trailing whitespace?</span><span>
</span><span id="line-87"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.Format.Locale.html#TimeLocale"><span class="hs-identifier hs-type">TimeLocale</span></a></span><span> </span><span class="hs-comment">-- ^ Time locale.</span><span>
</span><span id="line-88"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Format string</span><span>
</span><span id="line-89"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Input string.</span><span>
</span><span id="line-90"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="#local-6989586621679074135"><span class="hs-identifier hs-type">t</span></a></span><span class="hs-special">]</span></span><span>
</span><span id="line-91"></span><span id="parseTimeList"><span class="annot"><span class="annottext">parseTimeList :: forall t.
ParseTime t =&gt;
Bool -&gt; TimeLocale -&gt; String -&gt; String -&gt; [t]
</span><a href="Data.Time.Format.Parse.html#parseTimeList"><span class="hs-identifier hs-var hs-var">parseTimeList</span></a></span></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span id="local-6989586621679074008"><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679074008"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span id="local-6989586621679074007"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074007"><span class="hs-identifier hs-var">fmt</span></a></span></span><span> </span><span id="local-6989586621679074006"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074006"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621679074005"><span class="hs-identifier hs-var">t</span></a></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679074005"><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621679074005"><span class="hs-identifier hs-var">t</span></a></span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&quot;</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; TimeLocale -&gt; String -&gt; ReadS t
forall t. ParseTime t =&gt; Bool -&gt; TimeLocale -&gt; String -&gt; ReadS t
</span><a href="Data.Time.Format.Parse.html#readSTime"><span class="hs-identifier hs-var">readSTime</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679074008"><span class="hs-identifier hs-var">l</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074007"><span class="hs-identifier hs-var">fmt</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074006"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-92"></span><span class="annot"><a href="Data.Time.Format.Parse.html#parseTimeList"><span class="hs-identifier hs-var">parseTimeList</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span id="local-6989586621679074004"><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679074004"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span id="local-6989586621679074003"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074003"><span class="hs-identifier hs-var">fmt</span></a></span></span><span> </span><span id="local-6989586621679074002"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074002"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621679074001"><span class="hs-identifier hs-var">t</span></a></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679074001"><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621679074001"><span class="hs-identifier hs-var">t</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679074000"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074000"><span class="hs-identifier hs-var">r</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; TimeLocale -&gt; String -&gt; ReadS t
forall t. ParseTime t =&gt; Bool -&gt; TimeLocale -&gt; String -&gt; ReadS t
</span><a href="Data.Time.Format.Parse.html#readSTime"><span class="hs-identifier hs-var">readSTime</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679074004"><span class="hs-identifier hs-var">l</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074003"><span class="hs-identifier hs-var">fmt</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074002"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">(Char -&gt; Bool) -&gt; String -&gt; Bool
forall (t :: * -&gt; *) a. Foldable t =&gt; (a -&gt; Bool) -&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#all"><span class="hs-identifier hs-var">all</span></a></span><span> </span><span class="annot"><span class="annottext">Char -&gt; Bool
</span><a href="../../base/src/GHC.Unicode.html#isSpace"><span class="hs-identifier hs-var">isSpace</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679074000"><span class="hs-identifier hs-var">r</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-93"></span><span>
</span><span id="line-94"></span><span class="hs-comment">-- | Parse a time value given a format string.  See 'parseTimeM' for details.</span><span>
</span><span id="line-95"></span><span id="local-6989586621679074119"><span class="annot"><a href="Data.Time.Format.Parse.html#readSTime"><span class="hs-identifier hs-type">readSTime</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.Class.html#ParseTime"><span class="hs-identifier hs-type">ParseTime</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074119"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span>
</span><span id="line-96"></span><span>             </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>       </span><span class="hs-comment">-- ^ Accept leading whitespace?</span><span>
</span><span id="line-97"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.Format.Locale.html#TimeLocale"><span class="hs-identifier hs-type">TimeLocale</span></a></span><span> </span><span class="hs-comment">-- ^ Time locale.</span><span>
</span><span id="line-98"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Format string</span><span>
</span><span id="line-99"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#ReadS"><span class="hs-identifier hs-type">ReadS</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074119"><span class="hs-identifier hs-type">t</span></a></span></span><span>
</span><span id="line-100"></span><span id="readSTime"><span class="annot"><span class="annottext">readSTime :: forall t. ParseTime t =&gt; Bool -&gt; TimeLocale -&gt; String -&gt; ReadS t
</span><a href="Data.Time.Format.Parse.html#readSTime"><span class="hs-identifier hs-var hs-var">readSTime</span></a></span></span><span> </span><span id="local-6989586621679073995"><span class="annot"><span class="annottext">Bool
</span><a href="#local-6989586621679073995"><span class="hs-identifier hs-var">acceptWS</span></a></span></span><span> </span><span id="local-6989586621679073994"><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679073994"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span id="local-6989586621679073993"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073993"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ReadP t -&gt; ReadS t
forall a. ReadP a -&gt; ReadS a
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#readP_to_S"><span class="hs-identifier hs-var">readP_to_S</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Bool -&gt; TimeLocale -&gt; String -&gt; ReadP t
forall t. ParseTime t =&gt; Bool -&gt; TimeLocale -&gt; String -&gt; ReadP t
</span><a href="Data.Time.Format.Parse.html#readPTime"><span class="hs-identifier hs-var">readPTime</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="#local-6989586621679073995"><span class="hs-identifier hs-var">acceptWS</span></a></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679073994"><span class="hs-identifier hs-var">l</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073993"><span class="hs-identifier hs-var">f</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-101"></span><span>
</span><span id="line-102"></span><span class="hs-comment">-- | Parse a time value given a format string.  See 'parseTimeM' for details.</span><span>
</span><span id="line-103"></span><span id="local-6989586621679074113"><span class="annot"><a href="Data.Time.Format.Parse.html#readPTime"><span class="hs-identifier hs-type">readPTime</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.Class.html#ParseTime"><span class="hs-identifier hs-type">ParseTime</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074113"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span>
</span><span id="line-104"></span><span>             </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>       </span><span class="hs-comment">-- ^ Accept leading whitespace?</span><span>
</span><span id="line-105"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.Format.Locale.html#TimeLocale"><span class="hs-identifier hs-type">TimeLocale</span></a></span><span> </span><span class="hs-comment">-- ^ Time locale.</span><span>
</span><span id="line-106"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Format string</span><span>
</span><span id="line-107"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#ReadP"><span class="hs-identifier hs-type">ReadP</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074113"><span class="hs-identifier hs-type">t</span></a></span></span><span>
</span><span id="line-108"></span><span id="readPTime"><span class="annot"><span class="annottext">readPTime :: forall t. ParseTime t =&gt; Bool -&gt; TimeLocale -&gt; String -&gt; ReadP t
</span><a href="Data.Time.Format.Parse.html#readPTime"><span class="hs-identifier hs-var hs-var">readPTime</span></a></span></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span id="local-6989586621679073985"><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679073985"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span id="local-6989586621679073984"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073984"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TimeLocale -&gt; String -&gt; ReadP t
forall t. ParseTime t =&gt; TimeLocale -&gt; String -&gt; ReadP t
</span><a href="Data.Time.Format.Parse.html#readPOnlyTime"><span class="hs-identifier hs-var">readPOnlyTime</span></a></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679073985"><span class="hs-identifier hs-var">l</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073984"><span class="hs-identifier hs-var">f</span></a></span><span>
</span><span id="line-109"></span><span class="annot"><a href="Data.Time.Format.Parse.html#readPTime"><span class="hs-identifier hs-var">readPTime</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span id="local-6989586621679073982"><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679073982"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span id="local-6989586621679073981"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073981"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ReadP ()
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#skipSpaces"><span class="hs-identifier hs-var">skipSpaces</span></a></span><span> </span><span class="annot"><span class="annottext">ReadP () -&gt; ReadP t -&gt; ReadP t
forall (m :: * -&gt; *) a b. Monad m =&gt; m a -&gt; m b -&gt; m b
</span><a href="../../base/src/GHC.Base.html#%3E%3E"><span class="hs-operator hs-var">&gt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">TimeLocale -&gt; String -&gt; ReadP t
forall t. ParseTime t =&gt; TimeLocale -&gt; String -&gt; ReadP t
</span><a href="Data.Time.Format.Parse.html#readPOnlyTime"><span class="hs-identifier hs-var">readPOnlyTime</span></a></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679073982"><span class="hs-identifier hs-var">l</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073981"><span class="hs-identifier hs-var">f</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">ReadP t -&gt; ReadP t -&gt; ReadP t
forall a. ReadP a -&gt; ReadP a -&gt; ReadP a
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#%3C%2B%2B"><span class="hs-operator hs-var">&lt;++</span></a></span><span> </span><span class="annot"><span class="annottext">TimeLocale -&gt; String -&gt; ReadP t
forall t. ParseTime t =&gt; TimeLocale -&gt; String -&gt; ReadP t
</span><a href="Data.Time.Format.Parse.html#readPOnlyTime"><span class="hs-identifier hs-var">readPOnlyTime</span></a></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679073982"><span class="hs-identifier hs-var">l</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073981"><span class="hs-identifier hs-var">f</span></a></span><span>
</span><span id="line-110"></span><span>
</span><span id="line-111"></span><span id="local-6989586621679074106"><span id="local-6989586621679074107"><span class="annot"><a href="Data.Time.Format.Parse.html#readPOnlyTime%27"><span class="hs-identifier hs-type">readPOnlyTime'</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.Class.html#ParseTime"><span class="hs-identifier hs-type">ParseTime</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074107"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679074106"><span class="hs-identifier hs-type">proxy</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074107"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.Format.Locale.html#TimeLocale"><span class="hs-identifier hs-type">TimeLocale</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#ReadP"><span class="hs-identifier hs-type">ReadP</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074107"><span class="hs-identifier hs-type">t</span></a></span></span></span><span>
</span><span id="line-112"></span><span id="readPOnlyTime%27"><span class="annot"><span class="annottext">readPOnlyTime' :: forall t (proxy :: * -&gt; *).
ParseTime t =&gt;
proxy t -&gt; TimeLocale -&gt; String -&gt; ReadP t
</span><a href="Data.Time.Format.Parse.html#readPOnlyTime%27"><span class="hs-identifier hs-var hs-var">readPOnlyTime'</span></a></span></span><span> </span><span id="local-6989586621679073972"><span class="annot"><span class="annottext">proxy t
</span><a href="#local-6989586621679073972"><span class="hs-identifier hs-var">pt</span></a></span></span><span> </span><span id="local-6989586621679073971"><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679073971"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span id="local-6989586621679073970"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073970"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-113"></span><span>    </span><span id="local-6989586621679073969"><span class="annot"><span class="annottext">[(Char, String)]
</span><a href="#local-6989586621679073969"><span class="hs-identifier hs-var">pairs</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">proxy t -&gt; TimeLocale -&gt; String -&gt; ReadP [(Char, String)]
forall t (proxy :: * -&gt; *).
ParseTime t =&gt;
proxy t -&gt; TimeLocale -&gt; String -&gt; ReadP [(Char, String)]
</span><a href="Data.Time.Format.Parse.Class.html#parseSpecifiers"><span class="hs-identifier hs-var">parseSpecifiers</span></a></span><span> </span><span class="annot"><span class="annottext">proxy t
</span><a href="#local-6989586621679073972"><span class="hs-identifier hs-var">pt</span></a></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679073971"><span class="hs-identifier hs-var">l</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073970"><span class="hs-identifier hs-var">f</span></a></span><span>
</span><span id="line-114"></span><span>    </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">TimeLocale -&gt; [(Char, String)] -&gt; Maybe t
forall t. ParseTime t =&gt; TimeLocale -&gt; [(Char, String)] -&gt; Maybe t
</span><a href="Data.Time.Format.Parse.Class.html#buildTime"><span class="hs-identifier hs-var">buildTime</span></a></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="#local-6989586621679073971"><span class="hs-identifier hs-var">l</span></a></span><span> </span><span class="annot"><span class="annottext">[(Char, String)]
</span><a href="#local-6989586621679073969"><span class="hs-identifier hs-var">pairs</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-115"></span><span>        </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span id="local-6989586621679073966"><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621679073966"><span class="hs-identifier hs-var">t</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">t -&gt; ReadP t
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="annot"><span class="annottext">t
</span><a href="#local-6989586621679073966"><span class="hs-identifier hs-var">t</span></a></span><span>
</span><span id="line-116"></span><span>        </span><span class="annot"><span class="annottext">Maybe t
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">ReadP t
forall a. ReadP a
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#pfail"><span class="hs-identifier hs-var">pfail</span></a></span><span>
</span><span id="line-117"></span><span>
</span><span id="line-118"></span><span class="hs-comment">-- | Parse a time value given a format string (without allowing leading whitespace).  See 'parseTimeM' for details.</span><span>
</span><span id="line-119"></span><span id="local-6989586621679074111"><span class="annot"><a href="Data.Time.Format.Parse.html#readPOnlyTime"><span class="hs-identifier hs-type">readPOnlyTime</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.Class.html#ParseTime"><span class="hs-identifier hs-type">ParseTime</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074111"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span>
</span><span id="line-120"></span><span>             </span><span class="annot"><a href="Data.Time.Format.Locale.html#TimeLocale"><span class="hs-identifier hs-type">TimeLocale</span></a></span><span> </span><span class="hs-comment">-- ^ Time locale.</span><span>
</span><span id="line-121"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Format string</span><span>
</span><span id="line-122"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#ReadP"><span class="hs-identifier hs-type">ReadP</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074111"><span class="hs-identifier hs-type">t</span></a></span></span><span>
</span><span id="line-123"></span><span id="readPOnlyTime"><span class="annot"><span class="annottext">readPOnlyTime :: forall t. ParseTime t =&gt; TimeLocale -&gt; String -&gt; ReadP t
</span><a href="Data.Time.Format.Parse.html#readPOnlyTime"><span class="hs-identifier hs-var hs-var">readPOnlyTime</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Proxy t -&gt; TimeLocale -&gt; String -&gt; ReadP t
forall t (proxy :: * -&gt; *).
ParseTime t =&gt;
proxy t -&gt; TimeLocale -&gt; String -&gt; ReadP t
</span><a href="Data.Time.Format.Parse.html#readPOnlyTime%27"><span class="hs-identifier hs-var">readPOnlyTime'</span></a></span><span> </span><span class="annot"><span class="annottext">Proxy t
forall {k} (t :: k). Proxy t
</span><a href="../../base/src/Data.Proxy.html#Proxy"><span class="hs-identifier hs-var">Proxy</span></a></span><span>
</span><span id="line-124"></span><span>
</span><span id="line-125"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">parseTime</span><span> </span><span class="hs-pragma">&quot;use \&quot;parseTimeM True\&quot; instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-126"></span><span id="local-6989586621679074095"><span class="annot"><a href="Data.Time.Format.Parse.html#parseTime"><span class="hs-identifier hs-type">parseTime</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.Class.html#ParseTime"><span class="hs-identifier hs-type">ParseTime</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074095"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span>
</span><span id="line-127"></span><span>             </span><span class="annot"><a href="Data.Time.Format.Locale.html#TimeLocale"><span class="hs-identifier hs-type">TimeLocale</span></a></span><span> </span><span class="hs-comment">-- ^ Time locale.</span><span>
</span><span id="line-128"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Format string.</span><span>
</span><span id="line-129"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Input string.</span><span>
</span><span id="line-130"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074095"><span class="hs-identifier hs-type">t</span></a></span></span><span>    </span><span class="hs-comment">-- ^ The time value, or 'Nothing' if the input could</span><span>
</span><span id="line-131"></span><span>                        </span><span class="hs-comment">-- not be parsed using the given format.</span><span>
</span><span id="line-132"></span><span id="parseTime"><span class="annot"><span class="annottext">parseTime :: forall t. ParseTime t =&gt; TimeLocale -&gt; String -&gt; String -&gt; Maybe t
</span><a href="Data.Time.Format.Parse.html#parseTime"><span class="hs-identifier hs-var hs-var">parseTime</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; TimeLocale -&gt; String -&gt; String -&gt; Maybe t
forall (m :: * -&gt; *) t.
(MonadFail m, ParseTime t) =&gt;
Bool -&gt; TimeLocale -&gt; String -&gt; String -&gt; m t
</span><a href="Data.Time.Format.Parse.html#parseTimeM"><span class="hs-identifier hs-var">parseTimeM</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-133"></span><span>
</span><span id="line-134"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">readTime</span><span> </span><span class="hs-pragma">&quot;use \&quot;parseTimeOrError True\&quot; instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-135"></span><span id="local-6989586621679074093"><span class="annot"><a href="Data.Time.Format.Parse.html#readTime"><span class="hs-identifier hs-type">readTime</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.Class.html#ParseTime"><span class="hs-identifier hs-type">ParseTime</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074093"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span>
</span><span id="line-136"></span><span>            </span><span class="annot"><a href="Data.Time.Format.Locale.html#TimeLocale"><span class="hs-identifier hs-type">TimeLocale</span></a></span><span> </span><span class="hs-comment">-- ^ Time locale.</span><span>
</span><span id="line-137"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Format string.</span><span>
</span><span id="line-138"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Input string.</span><span>
</span><span id="line-139"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679074093"><span class="hs-identifier hs-type">t</span></a></span></span><span>          </span><span class="hs-comment">-- ^ The time value.</span><span>
</span><span id="line-140"></span><span id="readTime"><span class="annot"><span class="annottext">readTime :: forall t. ParseTime t =&gt; TimeLocale -&gt; String -&gt; String -&gt; t
</span><a href="Data.Time.Format.Parse.html#readTime"><span class="hs-identifier hs-var hs-var">readTime</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; TimeLocale -&gt; String -&gt; String -&gt; t
forall t.
ParseTime t =&gt;
Bool -&gt; TimeLocale -&gt; String -&gt; String -&gt; t
</span><a href="Data.Time.Format.Parse.html#parseTimeOrError"><span class="hs-identifier hs-var">parseTimeOrError</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-141"></span><span>
</span><span id="line-142"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">readsTime</span><span> </span><span class="hs-pragma">&quot;use \&quot;readSTime True\&quot; instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-143"></span><span id="local-6989586621679074091"><span class="annot"><a href="Data.Time.Format.Parse.html#readsTime"><span class="hs-identifier hs-type">readsTime</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Format.Parse.Class.html#ParseTime"><span class="hs-identifier hs-type">ParseTime</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074091"><span class="hs-identifier hs-type">t</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span>
</span><span id="line-144"></span><span>             </span><span class="annot"><a href="Data.Time.Format.Locale.html#TimeLocale"><span class="hs-identifier hs-type">TimeLocale</span></a></span><span> </span><span class="hs-comment">-- ^ Time locale.</span><span>
</span><span id="line-145"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>     </span><span class="hs-comment">-- ^ Format string</span><span>
</span><span id="line-146"></span><span>          </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#ReadS"><span class="hs-identifier hs-type">ReadS</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679074091"><span class="hs-identifier hs-type">t</span></a></span></span><span>
</span><span id="line-147"></span><span id="readsTime"><span class="annot"><span class="annottext">readsTime :: forall t. ParseTime t =&gt; TimeLocale -&gt; String -&gt; ReadS t
</span><a href="Data.Time.Format.Parse.html#readsTime"><span class="hs-identifier hs-var hs-var">readsTime</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; TimeLocale -&gt; String -&gt; ReadS t
forall t. ParseTime t =&gt; Bool -&gt; TimeLocale -&gt; String -&gt; ReadS t
</span><a href="Data.Time.Format.Parse.html#readSTime"><span class="hs-identifier hs-var">readSTime</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-148"></span><span>
</span><span id="line-149"></span><span class="hs-comment">-- * Read instances for time package types</span><span>
</span><span id="line-150"></span><span>
</span><span id="line-151"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679073947"><span id="local-6989586621679073949"><span id="local-6989586621679073951"><span class="annot"><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-type">Read</span></a></span><span> </span><span class="annot"><a href="Data.Time.Calendar.Days.html#Day"><span class="hs-identifier hs-type">Day</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-152"></span><span>    </span><span id="local-6989586621679073943"><span class="annot"><span class="annottext">readsPrec :: Int -&gt; ReadS Day
</span><a href="../../base/src/GHC.Read.html#readsPrec"><span class="hs-identifier hs-var hs-var hs-var hs-var">readsPrec</span></a></span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; ReadS Day -&gt; ReadS Day
forall a. Bool -&gt; ReadS a -&gt; ReadS a
</span><a href="../../base/src/GHC.Read.html#readParen"><span class="hs-identifier hs-var">readParen</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span class="annot"><span class="annottext">(ReadS Day -&gt; ReadS Day) -&gt; ReadS Day -&gt; ReadS Day
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; TimeLocale -&gt; String -&gt; ReadS Day
forall t. ParseTime t =&gt; Bool -&gt; TimeLocale -&gt; String -&gt; ReadS t
</span><a href="Data.Time.Format.Parse.html#readSTime"><span class="hs-identifier hs-var">readSTime</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="Data.Time.Format.Locale.html#defaultTimeLocale"><span class="hs-identifier hs-var">defaultTimeLocale</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;%Y-%m-%d&quot;</span></span><span>
</span><span id="line-153"></span><span>
</span><span id="line-154"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679073933"><span id="local-6989586621679073935"><span id="local-6989586621679073937"><span class="annot"><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-type">Read</span></a></span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-155"></span><span>    </span><span id="local-6989586621679073930"><span class="annot"><span class="annottext">readsPrec :: Int -&gt; ReadS TimeOfDay
</span><a href="#local-6989586621679073930"><span class="hs-identifier hs-var hs-var hs-var hs-var">readsPrec</span></a></span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; ReadS TimeOfDay -&gt; ReadS TimeOfDay
forall a. Bool -&gt; ReadS a -&gt; ReadS a
</span><a href="../../base/src/GHC.Read.html#readParen"><span class="hs-identifier hs-var">readParen</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span class="annot"><span class="annottext">(ReadS TimeOfDay -&gt; ReadS TimeOfDay)
-&gt; ReadS TimeOfDay -&gt; ReadS TimeOfDay
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; TimeLocale -&gt; String -&gt; ReadS TimeOfDay
forall t. ParseTime t =&gt; Bool -&gt; TimeLocale -&gt; String -&gt; ReadS t
</span><a href="Data.Time.Format.Parse.html#readSTime"><span class="hs-identifier hs-var">readSTime</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="Data.Time.Format.Locale.html#defaultTimeLocale"><span class="hs-identifier hs-var">defaultTimeLocale</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;%H:%M:%S%Q&quot;</span></span><span>
</span><span id="line-156"></span><span>
</span><span id="line-157"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679073923"><span id="local-6989586621679073925"><span id="local-6989586621679073927"><span class="annot"><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-type">Read</span></a></span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.LocalTime.html#LocalTime"><span class="hs-identifier hs-type">LocalTime</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-158"></span><span>    </span><span id="local-6989586621679073920"><span class="annot"><span class="annottext">readsPrec :: Int -&gt; ReadS LocalTime
</span><a href="#local-6989586621679073920"><span class="hs-identifier hs-var hs-var hs-var hs-var">readsPrec</span></a></span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; ReadS LocalTime -&gt; ReadS LocalTime
forall a. Bool -&gt; ReadS a -&gt; ReadS a
</span><a href="../../base/src/GHC.Read.html#readParen"><span class="hs-identifier hs-var">readParen</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span class="annot"><span class="annottext">(ReadS LocalTime -&gt; ReadS LocalTime)
-&gt; ReadS LocalTime -&gt; ReadS LocalTime
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; TimeLocale -&gt; String -&gt; ReadS LocalTime
forall t. ParseTime t =&gt; Bool -&gt; TimeLocale -&gt; String -&gt; ReadS t
</span><a href="Data.Time.Format.Parse.html#readSTime"><span class="hs-identifier hs-var">readSTime</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="Data.Time.Format.Locale.html#defaultTimeLocale"><span class="hs-identifier hs-var">defaultTimeLocale</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;%Y-%m-%d %H:%M:%S%Q&quot;</span></span><span>
</span><span id="line-159"></span><span>
</span><span id="line-160"></span><span class="hs-comment">-- | This only works for @&#177;HHMM@ format,</span><span>
</span><span id="line-161"></span><span class="hs-comment">-- single-letter military time-zones,</span><span>
</span><span id="line-162"></span><span class="hs-comment">-- and these time-zones: \&quot;UTC\&quot;, \&quot;UT\&quot;, \&quot;GMT\&quot;, \&quot;EST\&quot;, \&quot;EDT\&quot;, \&quot;CST\&quot;, \&quot;CDT\&quot;, \&quot;MST\&quot;, \&quot;MDT\&quot;, \&quot;PST\&quot;, \&quot;PDT\&quot;.</span><span>
</span><span id="line-163"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679073913"><span id="local-6989586621679073915"><span id="local-6989586621679073917"><span class="annot"><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-type">Read</span></a></span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeZone.html#TimeZone"><span class="hs-identifier hs-type">TimeZone</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-164"></span><span>    </span><span id="local-6989586621679073910"><span class="annot"><span class="annottext">readsPrec :: Int -&gt; ReadS TimeZone
</span><a href="#local-6989586621679073910"><span class="hs-identifier hs-var hs-var hs-var hs-var">readsPrec</span></a></span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; ReadS TimeZone -&gt; ReadS TimeZone
forall a. Bool -&gt; ReadS a -&gt; ReadS a
</span><a href="../../base/src/GHC.Read.html#readParen"><span class="hs-identifier hs-var">readParen</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span class="annot"><span class="annottext">(ReadS TimeZone -&gt; ReadS TimeZone)
-&gt; ReadS TimeZone -&gt; ReadS TimeZone
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; TimeLocale -&gt; String -&gt; ReadS TimeZone
forall t. ParseTime t =&gt; Bool -&gt; TimeLocale -&gt; String -&gt; ReadS t
</span><a href="Data.Time.Format.Parse.html#readSTime"><span class="hs-identifier hs-var">readSTime</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span class="annot"><span class="annottext">TimeLocale
</span><a href="Data.Time.Format.Locale.html#defaultTimeLocale"><span class="hs-identifier hs-var">defaultTimeLocale</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;%Z&quot;</span></span><span>
</span><span id="line-165"></span><span>
</span><span id="line-166"></span><span class="hs-comment">-- | This only works for a 'zonedTimeZone' in @&#177;HHMM@ format,</span><span>
</span><span id="line-167"></span><span class="hs-comment">-- single-letter military time-zones,</span><span>
</span><span id="line-168"></span><span class="hs-comment">-- and these time-zones: \&quot;UTC\&quot;, \&quot;UT\&quot;, \&quot;GMT\&quot;, \&quot;EST\&quot;, \&quot;EDT\&quot;, \&quot;CST\&quot;, \&quot;CDT\&quot;, \&quot;MST\&quot;, \&quot;MDT\&quot;, \&quot;PST\&quot;, \&quot;PDT\&quot;.</span><span>
</span><span id="line-169"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679073903"><span id="local-6989586621679073905"><span id="local-6989586621679073907"><span class="annot"><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-type">Read</span></a></span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.ZonedTime.html#ZonedTime"><span class="hs-identifier hs-type">ZonedTime</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-170"></span><span>    </span><span id="local-6989586621679073900"><span class="annot"><span class="annottext">readsPrec :: Int -&gt; ReadS ZonedTime
</span><a href="#local-6989586621679073900"><span class="hs-identifier hs-var hs-var hs-var hs-var">readsPrec</span></a></span></span><span> </span><span id="local-6989586621679073899"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679073899"><span class="hs-identifier hs-var">n</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; ReadS ZonedTime -&gt; ReadS ZonedTime
forall a. Bool -&gt; ReadS a -&gt; ReadS a
</span><a href="../../base/src/GHC.Read.html#readParen"><span class="hs-identifier hs-var">readParen</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span class="annot"><span class="annottext">(ReadS ZonedTime -&gt; ReadS ZonedTime)
-&gt; ReadS ZonedTime -&gt; ReadS ZonedTime
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679073898"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073898"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-171"></span><span>        </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><span class="annottext">LocalTime -&gt; TimeZone -&gt; ZonedTime
</span><a href="Data.Time.LocalTime.Internal.ZonedTime.html#ZonedTime"><span class="hs-identifier hs-var">ZonedTime</span></a></span><span> </span><span class="annot"><span class="annottext">LocalTime
</span><a href="#local-6989586621679073896"><span class="hs-identifier hs-var">t</span></a></span><span> </span><span class="annot"><span class="annottext">TimeZone
</span><a href="#local-6989586621679073895"><span class="hs-identifier hs-var">z</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073894"><span class="hs-identifier hs-var">r2</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679073896"><span class="annot"><span class="annottext">LocalTime
</span><a href="#local-6989586621679073896"><span class="hs-identifier hs-var">t</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679073893"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073893"><span class="hs-identifier hs-var">r1</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Int -&gt; ReadS LocalTime
forall a. Read a =&gt; Int -&gt; ReadS a
</span><a href="../../base/src/GHC.Read.html#readsPrec"><span class="hs-identifier hs-var">readsPrec</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679073899"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073898"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">,</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679073895"><span class="annot"><span class="annottext">TimeZone
</span><a href="#local-6989586621679073895"><span class="hs-identifier hs-var">z</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679073894"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073894"><span class="hs-identifier hs-var">r2</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Int -&gt; ReadS TimeZone
forall a. Read a =&gt; Int -&gt; ReadS a
</span><a href="../../base/src/GHC.Read.html#readsPrec"><span class="hs-identifier hs-var">readsPrec</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679073899"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073893"><span class="hs-identifier hs-var">r1</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-172"></span><span>
</span><span id="line-173"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679073886"><span id="local-6989586621679073888"><span id="local-6989586621679073890"><span class="annot"><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-type">Read</span></a></span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.UTCTime.html#UTCTime"><span class="hs-identifier hs-type">UTCTime</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-174"></span><span>    </span><span id="local-6989586621679073884"><span class="annot"><span class="annottext">readsPrec :: Int -&gt; ReadS UTCTime
</span><a href="#local-6989586621679073884"><span class="hs-identifier hs-var hs-var hs-var hs-var">readsPrec</span></a></span></span><span> </span><span id="local-6989586621679073883"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679073883"><span class="hs-identifier hs-var">n</span></a></span></span><span> </span><span id="local-6989586621679073882"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073882"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ZonedTime -&gt; UTCTime
</span><a href="Data.Time.LocalTime.Internal.ZonedTime.html#zonedTimeToUTC"><span class="hs-identifier hs-var">zonedTimeToUTC</span></a></span><span> </span><span class="annot"><span class="annottext">ZonedTime
</span><a href="#local-6989586621679073880"><span class="hs-identifier hs-var">t</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073879"><span class="hs-identifier hs-var">r</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679073880"><span class="annot"><span class="annottext">ZonedTime
</span><a href="#local-6989586621679073880"><span class="hs-identifier hs-var">t</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679073879"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073879"><span class="hs-identifier hs-var">r</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Int -&gt; ReadS ZonedTime
forall a. Read a =&gt; Int -&gt; ReadS a
</span><a href="../../base/src/GHC.Read.html#readsPrec"><span class="hs-identifier hs-var">readsPrec</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679073883"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073882"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-175"></span><span>
</span><span id="line-176"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679073872"><span id="local-6989586621679073874"><span id="local-6989586621679073876"><span class="annot"><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-type">Read</span></a></span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.UniversalTime.html#UniversalTime"><span class="hs-identifier hs-type">UniversalTime</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-177"></span><span>    </span><span id="local-6989586621679073866"><span class="annot"><span class="annottext">readsPrec :: Int -&gt; ReadS UniversalTime
</span><a href="#local-6989586621679073866"><span class="hs-identifier hs-var hs-var hs-var hs-var">readsPrec</span></a></span></span><span> </span><span id="local-6989586621679073865"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679073865"><span class="hs-identifier hs-var">n</span></a></span></span><span> </span><span id="local-6989586621679073864"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073864"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Rational -&gt; LocalTime -&gt; UniversalTime
</span><a href="Data.Time.LocalTime.Internal.LocalTime.html#localTimeToUT1"><span class="hs-identifier hs-var">localTimeToUT1</span></a></span><span> </span><span class="annot"><span class="annottext">Rational
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">LocalTime
</span><a href="#local-6989586621679073862"><span class="hs-identifier hs-var">t</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073861"><span class="hs-identifier hs-var">r</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679073862"><span class="annot"><span class="annottext">LocalTime
</span><a href="#local-6989586621679073862"><span class="hs-identifier hs-var">t</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679073861"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073861"><span class="hs-identifier hs-var">r</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Int -&gt; ReadS LocalTime
forall a. Read a =&gt; Int -&gt; ReadS a
</span><a href="../../base/src/GHC.Read.html#readsPrec"><span class="hs-identifier hs-var">readsPrec</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679073865"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679073864"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-178"></span></pre></body></html>